Skip to content

feat(retry): record more fields in the retry interceptor#7406

Open
dentiny wants to merge 2 commits intoapache:mainfrom
dentiny:hjiang/retry-interceptor
Open

feat(retry): record more fields in the retry interceptor#7406
dentiny wants to merge 2 commits intoapache:mainfrom
dentiny:hjiang/retry-interceptor

Conversation

@dentiny
Copy link
Copy Markdown
Contributor

@dentiny dentiny commented Apr 17, 2026

Rationale for this change

Hi team, in production I need to collect retry-related metrics, like retry attempt count, retry errors, retry operations, etc.
Currently the best way to leverage existing retry layer out-of-box is via the interceptor, which it still misses a few fields.
I raise a related feature request here: #7312, but requires more change.

What changes are included in this PR?

This PR adds more fields to the retry interceptor and wrap all of them into RetryEvent struct

Are there any user-facing changes?

Yes, this is an API change if users are creating their own interceptor, but it's an easy change to migrate to RetryEvent.

AI Usage Statement

I used opus 4.6 to make code change, with me doing code review.

@dentiny dentiny requested a review from Xuanwo as a code owner April 17, 2026 21:05
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. releases-note/feat The PR implements a new feature or has a title that begins with "feat" labels Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat" size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant